package com.zcy.tag;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

public class SkipBodyOrEvalBodyIncludeTag extends TagSupport {
	@Override
	public int doStartTag() throws JspException {
		String name=pageContext.getRequest().getParameter("name");
		if(name!=null&&name.equals("tagTest")){
			return EVAL_BODY_INCLUDE;//处理标签体中的类容
		}else{
			return SKIP_BODY;//不处理
		}
	}
}
